package Design_patterns.creator_mode.prototype.demo;

/**
 * @description: 原型模式--原型类
 **/

public class Realizetype implements Cloneable {


    public Realizetype(){
        System.out.println("Realizetype构造方法");
    }

    @Override
    public Realizetype clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功");
        return (Realizetype) super.clone();
    }
}
